<template>
    <view class="load">
        <van-loading size="20px" text-size="17px" vertical v-if="loadingIsShow" color="#757980" type="spinner" >
            <!-- 加载中... -->
        </van-loading>
    </view>
</template>

<script>
export default {
    props: {
        loadingIsShow: {
            type: Boolean
        }
    },
    watch: {
        loadingIsShow (newValue) {
            this.loadingIsShow = newValue
        }
    },
    data () {
        return {
        }
    },
    onReady () {
        console.log(this.loadingIsShow, 'this.loadingIsShow333333333')
    },
    methods: {
    }
}
</script>

<style scoped lang="scss">
.load{
   position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
}
</style>
